package method;

import node.Node;

public class toLastNode {
    public static Node work(Node head) {
        Node cur=head;
        while(cur.next!=null) cur=cur.next;
        return cur;
    }
}
